package com.yjps.company.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 麒全 on 2015/8/18.
 */
@Entity
@Table(name = "attention")
public class DayAttention extends BaseModel {
//    @Column(name = "id",nullable = false)
//    private int id;
    @Column(name = "attention_title",nullable = false)
    private String title;
    @Column(name = "attention_time",nullable = false)
    private String time;
    @Column(name = "attention_content",nullable = false)
    private String content;
    @Column(name = "attention_state")
    private int state;
    @Column(name = "attention_image")
    private String image;
    @Column(name = "user_id",nullable = false)
    private int userId;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

//    @Override
//    public int getId() {
//        return id;
//    }
//
//    public void setId(int id) {
//        this.id = id;
//    }
}
